#!/usr/bin/env r
#
# a simple example to install one or more packages
# straight outa the littler examples section

if (is.null(argv) | length(argv)<1) {

cat("Usage: installr.r pkg1 [pkg2 pkg3 ...]\n")
q()

}

## adjust as necessary, see help('download.packages')
repos <- "http://cran.us.r-project.org"

lib.loc <- "/home/ubuntu/R/library"

install.packages(argv, lib.loc, repos)


